package com.flyduck.mall.oms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flyduck.mall.oms.domain.OmsOrderItem;

import java.util.List;

/**
 * 订单明细Mapper接口
 *
 * @author flyduck
 * @date 2025-01-18
 */
public interface OmsOrderItemMapper extends BaseMapper<OmsOrderItem> {
    default List<OmsOrderItem> getAppOrderItemListByOrderId(Long orderId){
        return this.selectList(
                new LambdaQueryWrapper<OmsOrderItem>()
                        .eq(OmsOrderItem::getOrderId,orderId)
        );
    }
}
